package cn.south.campus.admin.campus.mapper;

import cn.south.campus.admin.campus.model.entity.ComplaintComment;
import cn.south.campus.admin.campus.model.req.CommentReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chow
 * @since 2025-01-16
 */
public interface CommentMapper extends BaseMapper<ComplaintComment> {

    PageDTO<ComplaintComment> selectParent(PageDTO<ComplaintComment> pageDto, @Param("query") CommentReq query);

    PageDTO<ComplaintComment> selectByAncestor(PageDTO<ComplaintComment> objectPageDTO, @Param("query") CommentReq query);
}
